package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BoxRewardTypesMapper;
import com.ruoyi.system.domain.BoxRewardTypes;
import com.ruoyi.system.service.IBoxRewardTypesService;

/**
 * 宝箱奖励信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
@Service
public class BoxRewardTypesServiceImpl implements IBoxRewardTypesService 
{
    @Autowired
    private BoxRewardTypesMapper boxRewardTypesMapper;

    /**
     * 查询宝箱奖励信息
     * 
     * @param rewardTypeId 宝箱奖励信息主键
     * @return 宝箱奖励信息
     */
    @Override
    public BoxRewardTypes selectBoxRewardTypesByRewardTypeId(Long rewardTypeId)
    {
        return boxRewardTypesMapper.selectBoxRewardTypesByRewardTypeId(rewardTypeId);
    }

    /**
     * 查询宝箱奖励信息列表
     * 
     * @param boxRewardTypes 宝箱奖励信息
     * @return 宝箱奖励信息
     */
    @Override
    public List<BoxRewardTypes> selectBoxRewardTypesList(BoxRewardTypes boxRewardTypes)
    {
        return boxRewardTypesMapper.selectBoxRewardTypesList(boxRewardTypes);
    }

    /**
     * 新增宝箱奖励信息
     * 
     * @param boxRewardTypes 宝箱奖励信息
     * @return 结果
     */
    @Override
    public int insertBoxRewardTypes(BoxRewardTypes boxRewardTypes)
    {
        return boxRewardTypesMapper.insertBoxRewardTypes(boxRewardTypes);
    }

    /**
     * 修改宝箱奖励信息
     * 
     * @param boxRewardTypes 宝箱奖励信息
     * @return 结果
     */
    @Override
    public int updateBoxRewardTypes(BoxRewardTypes boxRewardTypes)
    {
        return boxRewardTypesMapper.updateBoxRewardTypes(boxRewardTypes);
    }

    /**
     * 批量删除宝箱奖励信息
     * 
     * @param rewardTypeIds 需要删除的宝箱奖励信息主键
     * @return 结果
     */
    @Override
    public int deleteBoxRewardTypesByRewardTypeIds(Long[] rewardTypeIds)
    {
        return boxRewardTypesMapper.deleteBoxRewardTypesByRewardTypeIds(rewardTypeIds);
    }

    /**
     * 删除宝箱奖励信息信息
     * 
     * @param rewardTypeId 宝箱奖励信息主键
     * @return 结果
     */
    @Override
    public int deleteBoxRewardTypesByRewardTypeId(Long rewardTypeId)
    {
        return boxRewardTypesMapper.deleteBoxRewardTypesByRewardTypeId(rewardTypeId);
    }
}
